package com.sunmnet.j2ee.entity.powerdb.designer;

import com.sunmnet.j2ee.entity.base.BaseAutoEntity;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * <PRE>
 * 项目
 * </PRE>
 * <B>项    目：</B> sunmnet-j2ee
 * <B>技术支持：</B>广东三盟科技 (c) ${YEAR}
 *
 * @author 郭婉华
 * @version 1.0 ${DATE}
 * @since jdk版本：jdk1.7
 */
@Entity
@Table(name = "pdm_project")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Project extends BaseAutoEntity implements java.io.Serializable {

	private static final long serialVersionUID = -5589110720430083083L;

	private String name;

	private String remark;

	private Long accountId;

	private Long createAccountId;

	private Long modifyAccountId;

	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "account_id")
	public Long getAccountId() {
		return accountId;
	}

	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}
	@Column(name = "create_account_id")
	public Long getCreateAccountId() {
		return createAccountId;
	}

	public void setCreateAccountId(Long createAccountId) {
		this.createAccountId = createAccountId;
	}
	@Column(name = "modify_account_id")
	public Long getModifyAccountId() {
		return modifyAccountId;
	}

	public void setModifyAccountId(Long modifyAccountId) {
		this.modifyAccountId = modifyAccountId;
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return new ReflectionToStringBuilder(
				this,
				ToStringStyle.DEFAULT_STYLE)
				.toString();
	}
}